<template>
  <div class="project-card">
    <div class="project-top">
      <div class="project-til">
        {{ item.title }}
      </div>
      <div class="project-com">
        {{ item.company }}
      </div>
    </div>
    <div class="project-msg">
      {{ item.msg }}
    </div>
    <div class="project-bottom">
      <div class="project-bottom-left">
        <div class="project-label-item">CIM</div>
        <div class="project-label-item">一标三实</div>
        <div class="project-label-item">前沿技术</div>
      </div>
      <div class="project-bottom-right">
        <div class="project-bottom-other">
          <i class="el-icon-view"></i>
          浏览{{ item.views }}次
        </div>
        <div class="project-bottom-other">
          <i class="el-icon-view"></i>
          分支{{ item.branch }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      item: {
        title: '武汉市道路环境数据',
        msg: '武汉市道路的几何形状、交通信号、路标、路面状况等信息。',
        company: '东湖高新区交通局',
        branch: 30,
        views: 1252
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.project-card {
  height: 168px;
  padding: 24px;
  border-bottom: 1px solid rgb(238, 238, 238);
  box-sizing: border-box;
  color: rgb(102, 102, 102);
  font-family: HarmonyOS Sans SC;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
  .project-bottom-left {
    width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    > div {
      width: 80px;
      height: 28px;
      line-height: 28px;
      text-align: center;
      border: 1px solid rgb(43, 142, 255);
      border-radius: 14px;
      background: rgb(255, 255, 255);
      color: rgb(68, 75, 86);
      font-family: HarmonyOS Sans SC;
      font-size: 14px;
      font-weight: 400;
      line-height: 24px;
      letter-spacing: 0px;
      text-align: center;
      margin-right: 10px;
    }
  }
  .project-bottom-right {
    display: flex;
    align-items: center;
    .project-bottom-other {
      margin-left: 20px;
    }
  }
  .project-msg {
    margin: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .project-top,
  .project-bottom {
    display: flex;
    align-items: center;
  }
  .project-til {
    width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgb(51, 51, 51);
    font-family: 思源黑体;
    font-size: 30px;
    font-weight: 700;
    line-height: 43px;
    letter-spacing: 0px;
    text-align: left;
  }
}
</style>
